package com.example.daibanshiwu.pojo;

import java.sql.Date;

public class MessageChild {
    private int id;   // 消息子表id
    private String messageId;  // 消息表id
    private boolean isTemplate;  // 是否为模板
    private String templateType;
    private String templateContent; // 模板内容
    private Date scheduledTime;  // 定时

    public MessageChild() {}

    public MessageChild(int id, String messageId, boolean isTemplate, String templateType, String templateContent, Date scheduledTime) {
        this.id = id;
        this.messageId = messageId;
        this.isTemplate = isTemplate;
        this.templateType = templateType;
        this.templateContent = templateContent;
        this.scheduledTime = scheduledTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getTemplateType() {
        return templateType;
    }

    public void setTemplateType(String templateType) {
        this.templateType = templateType;
    }

    public boolean isTemplate() {
        return isTemplate;
    }

    public void setTemplate(boolean template) {
        isTemplate = template;
    }

    public String getTemplateContent() {
        return templateContent;
    }

    public void setTemplateContent(String templateContent) {
        this.templateContent = templateContent;
    }

    public Date getScheduledTime() {
        return scheduledTime;
    }

    public void setScheduledTime(Date scheduledTime) {
        this.scheduledTime = scheduledTime;
    }

    @Override
    public String toString() {
        return "MessageChild{" +
                "id=" + id +
                ", messageId='" + messageId + '\'' +
                ", isTemplate=" + isTemplate +
                ", templateType='" + templateType + '\'' +
                ", templateContent='" + templateContent + '\'' +
                ", scheduledTime=" + scheduledTime +
                '}';
    }
}
